import service from '@/utils/request'

export const use${ClassName}Api = (id: number) => {
	return service.get('/gen/${functionName}/' + id)
}

export const use${ClassName}ListApi = () => {
	return service.get('/gen/${functionName}/list')
}

export const use${ClassName}SubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/gen/${functionName}', dataForm)
	} else {
		return service.post('/gen/${functionName}', dataForm)
	}
}